* lisp/isearch.el (isearch-quote-char): Check character validity like in `quoted...
authorJuri Linkov <juri@jurta.org>
Sat, 8 Feb 2014 10:20:45 +0000 (12:20 +0200)
committerJuri Linkov <juri@jurta.org>
Sat, 8 Feb 2014 10:20:45 +0000 (12:20 +0200)
lisp/ChangeLog
lisp/isearch.el

index f453089d8e33d9de1605156ca071a77f40d77f52..069b0bb48ddda0618c3a2ad636b8527d835a87c5 100644 (file)
@@ -1,3 +1,8 @@
+2014-02-08  Juri Linkov  <juri@jurta.org>
+
+       * isearch.el (isearch-quote-char): Check character validity
+       like in `quoted-insert' (bug#16677).
+
 2014-02-08  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * files.el (find-file-visit-truename): Doc clarification (bug#14697).
index c8dc89cb821e95ff9c0cdab1b3b1c226df741653..86a0d8fc14178bc09e8645808239fb7f19f19eba 100644 (file)
@@ -2301,6 +2301,9 @@ before the command is executed globally with terminated Isearch."
 With argument, add COUNT copies of the character."
   (interactive "p")
   (let ((char (read-quoted-char (isearch-message t))))
+    (unless (characterp char)
+      (user-error "%s is not a valid character"
+                 (key-description (vector char))))
     ;; Assume character codes 0200 - 0377 stand for characters in some
     ;; single-byte character set, and convert them to Emacs
     ;; characters.